<%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2021/1/18
  Time: 16:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<input type="text" name="userCode" id="userCode">
</body>
<script src="statics/js/jquery-1.8.3.min.js"/>
<script>
    $("#userCode").blur($.ajax({
        type:"GET",
        url:"userExist",
        data:$("#userCode").val(),
        dataType:"JSON",
        success:function (data) {
            if (data.flag){
                alert("正确")
            }else{
                alert("错误")
            }
        }
    }));
</script>
</html>
